#ifndef IMAGEN_ADT_
#define IMAGEN_ADT_

typedef struct imageCDT *imageADT;


int newImage( imageADT *image);

int loadImage( imageADT *image, FILE *input, int blockSize);

int encryptImage( imageADT *image, const char *modeString, unsigned char *mykey, unsigned char *iv );

int decryptImage( imageADT *image, const char *modeString, unsigned char *mykey, unsigned char *iv );

int saveImage( imageADT *image, FILE *output);

int freeImage( imageADT *image);


#endif


